package com.goldcn.goods.dao;

import com.goldcn.goods.dto.GoodsLabelDto;
import com.goldcn.goods.model.GoodsLabel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsLabelMapper {
    int deleteByPrimaryKey(Long labelID);

    int insertSelective(GoodsLabel record); //这个插入方法是可用的

    GoodsLabel selectByPrimaryKey(Long labelID);

    int updateByPrimaryKeySelective(GoodsLabel record);

    List<GoodsLabelDto> getGoodsLabelList(Long companyID);

    int updateBannerByLabelID(GoodsLabel record);

    List<GoodsLabel> IsExistsGoodsLabel(@Param("name")String name, @Param("companyID")Long companyID);

    int labelUseCount(Long labelID);

    int deleteByCompanyID(Long companyID);

}